<?php

require_once './field_util.php';
/**
 *
 */
class AdminUserFileUtil extends BaseFieldUtil
{
    public static function roleId()
    {
        $roles  = [1,2,3,4,5,6,7,8,9,10,11,12,13];
        return $roles[mt_rand(0, count($roles) - 1)];
    }

    public static function realName()
    {
        $names = ['们','力','电','量','得','工','定','着水','化','起','的','和','有','生','对于','人','来','学','要','化','国','会','经','多','度','时','实','进','定','法','线','经','长','电高','党'];
        $count_real_name = mt_rand(1, 5);
        $return = '';
        for ($i=0; $i < $count_real_name ; $i++) {
            $return .= $names[mt_rand(0, count($names) - 1)];
        }
        return $return;
    }

    public static function userName()
    {
        $users    = ['1', '2', '3', '4', 'a', 'b', 'c', 'd', 'f', '发', '额', '哦', '看', '的', 'の', '啊', 'b','s', 'e', 'd', 'o', 'p', '-', 'h'];
        $count_user_name = mt_rand(1, 6);
        $return = ''; //用户名
        for ($i=0; $i < $count_user_name; $i++) {
            $return .= $users[mt_rand(0, count($users) - 1)];
        }
        return $return;
    }

    public function password($value = '123456')
    {
        return md5($value);
    }

    public function id()
    {
        return mt_rand(1, 4);
    }
}
